package news.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import dao.NewsTypeDao;
import models.NewsType;

@Controller
@RequestMapping("/admin/newsType")
public class NewsTypeController extends CRUDController<NewsType>{
    public NewsTypeController() {
        NewsTypeDao dao = new NewsTypeDao();
        setDao(dao);
        setModelClass(NewsType.class);
    }
}
